/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ufps.cuatro.util.opciones;

import com.ufps.cuatro.util.base.ObjectBase;

/**
 *
 * @author Carlos A. Torres C. 
 */
public class TypeOptionPreferences extends ObjectBase{
    
    public final static int TYPE_INT = 0;
    public final static int TYPE_LONG = 1;
    public final static int TYPE_FLOAT = 2;
    public final static int TYPE_DOUBLE = 3;
    public final static int TYPE_BOOLEAN = 4;
    public final static int TYPE_STRING = 5;
    private static final long serialVersionUID = 7167761823508267111L;
    
    private int type;
    private String key;    
    private String value;
    private String tooltips = "";

    public TypeOptionPreferences(int type, String key, int value) {
        this.type = type;
        this.key = key;
        this.value = String.valueOf(value);
    }
    
    public TypeOptionPreferences(int type, String key, long value) {
        this.type = type;
        this.key = key;
        this.value = String.valueOf(value);
    }
    
    public TypeOptionPreferences(int type, String key, float value) {
        this.type = type;
        this.key = key;
        this.value = String.valueOf(value);
    }
    
    public TypeOptionPreferences(int type, String key, double value) {
        this.type = type;
        this.key = key;
        this.value = String.valueOf(value);
    }
    
    public TypeOptionPreferences(int type, String key, boolean value) {
        this.type = type;
        this.key = key;
        this.value = String.valueOf(value);
    }
    
    public TypeOptionPreferences(int type, String key, String value) {
        this.type = type;
        this.key = key;
        this.value = String.valueOf(value);
    }

    public int getType() {
        return type;
    }

    public String getKey() {
        return key;
    }

    public String getTooltips() {
        return tooltips;
    }

    public void setTooltips(String tooltips) {
        this.tooltips = tooltips;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }
    
    
}
